/*************************************************************************
	> File Name: main.cc
	> Author: Joker
	> Mail: mahongtao@foxmail.com 
	> Created Time: 2020-09-21 20:53:40
 ************************************************************************/

#include "Prototype.h"

#include <iostream>
using namespace std;
 
void test0(){
    Prototype * pPrototype1 = new ConcreatePrototype1();
    Prototype * pPrototype2 = pPrototype1->Clone();

    Prototype * pPrototype3 = new ConcreatePrototype2();
    Prototype * pPrototype4 = pPrototype3->Clone();

    delete pPrototype1;
    delete pPrototype2;
    delete pPrototype3;
    delete pPrototype4;
}

int main(int argc,char *argv[])
{
    test0(); 
    return 0;
}
